package chapter_5.aa;

import chapter_5.People;

public class Teacher extends People {
    String tno = "888";
    public String getTno() {
        return tno;
    }
    public Teacher(){
        System.out.println(tno);
        System.out.println("teacher");
    }
    public String getName() {
        super.getName();
        return super.name;
    }
    public String toString() {
        return "老师姓名:"+name+"年龄:"+age+"性别:"+sex+"工号:"+tno;
    }
}
